// pages/order/paySuccess/paySuccess.js
var http = require('../../../utils/server.js');
var util = require('../../../utils/util.js')
Page({
  data: {
    orderId: '',
    money: 0.00
  },
  onLoad: function(option) {
    var that = this
    if (option.order_id)
      that.setData({
        orderId: option.order_id
      })
    if (option.money)
      that.setData({
        money: parseFloat(option.money).toFixed(2)
      })
  },
  goToIndex: function() {
    wx.reLaunch({
      url: '/pages/index/welcome'
    })
  },
  goToOrder: function() {
    wx.redirectTo({
      url: "/pages/order/orderdetails/orderdetails?id=" + this.data.orderId
    })
  }
})